// lib/network/api_routes.dart
class ApiRoutes {
  // Auth
  static const login = '/v1/login';
  static const register = '/v1/register';
  static const refresh = '/auth/refresh';
  static const getCode = '/v1/getCode';

  // Product
  static const products = '/v1/getGoods';
  static const getCategory = '/v1/getCategory';
  static const getProductDetail = '/v1/getGoodsDetail';

  // user
  static const getUserInfo = '/v1/getUserInfo';
  static const getDefaultAddress = '/v1/getDefaultAddress';
  static const updateUserInfo = '/v1/updateUserInfo';
  static const updatePassword = '/v1/updatePassword';
  static const resetPassword = '/v1/resetPassword';

  // Address
  static const getAddressList = '/v1/getAddressList';
  static const addAddress = '/v1/addAddress';
  static const updateAddress = '/v1/updateAddress';
  static const deleteAddress = '/v1/deleteAddress';

  // Cart
  static const cartList = '/v1/getCartList';
  static const cartAdd = '/v1/addToCart';
  static const cartUpdate = '/v1/updateCart';
  static const cartDelete = '/v1/deleteCart';
  static const cartClear = '/v1/clearCart';

  // Order
  static const orders = '/v1//getOrderList';
  static const orderDetail = '/v1/getOrderDetail';
  static const payOrder = "/v1/payOrder";
  static const placeOrder = "/v1/placeOrder";
  static const updateOrder = "/v1/updateOrder";

  // 商家
  static const merchantInfo = '/v1/getShopInfo';

  // common
  static const uploadFile = '/v1/uploadFile';
  static const uploadFileBytes = '/v1/uploadFileBytes';
}
